﻿using Ny.Ci.Core.Common;
using Ny.Common;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Ny.Ci.Core.Mentions
{
    public class MentionInfo : MayBaseEntity
    {
        public MentionInfo()
        {
        }

        /// <summary>
        /// 积分
        /// </summary>
        [Required]
        public virtual int Integral { set; get; }
        /// <summary>
        /// 发生时间
        /// </summary>
        public virtual DateTime? OccurTime{get;set;}
        /// <summary>
        /// 发生地点
        /// </summary>
        public virtual string OccurPlace { get; set; }
        /// <summary>
        /// 是否匿名
        /// </summary>
        public virtual bool IsAnonymous { get; set; }
        /// <summary>
        /// 事项类别
        /// </summary>
        [Required]
        public virtual Guid MentionTypeId { get; set; }

        [ForeignKey("MentionTypeId")]
        public virtual MentionType MentionType { get; set; }
        /// <summary>
        /// 工单状态
        /// </summary>
        public virtual MentionStatueEnum Status { set; get; }
        [Required]
        public virtual int CreateUserId { set; get; }
        /// <summary>
        /// 创建人名
        /// </summary>
        [Required]
        public virtual int CreateUserName { set; get; }
        /// <summary>
        /// 提问入口
        /// </summary>
        [Required]
        public virtual LoginMethodEnum Entrance { set; get; }
        /// <summary>
        /// 详情
        /// </summary>
        [Required]
        [MaxLength]
        public string Content { set; get; }
    }
}
